import cv2

cap = cv2.VideoCapture(0)
while 1:
    ret, frame = cap.read()
    if ret is True:
        cv2.imshow("frame", frame)
        cv2.waitKey(1)

# def towSum(nums, target):
#     rec = {}
#     for i, num in enumerate(nums):
#         if num in list(rec.keys()):
#             return [rec[num], i]
#         else:
#             rec[target - num] = i
#
# print(towSum([3, 2, 4], 6))
#
# for i in range(2, 1):
#     print(i)
